package com.foredu.fiqs.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;

@Entity
@Table(name = "T_Student")
@PrimaryKeyJoinColumn(name = "user_id")
public class Student extends User implements Serializable {

	private static final long serialVersionUID = 1L;
	private String stuId;// 学号
	private char sex;// 性别
	private String IDCard;// 身份证号码
	private Clazz clazz;// 所属班级

	@Column
	public String getStuId() {
		return stuId;
	}

	public void setStuId(String stuId) {
		this.stuId = stuId;
	}

	@Column
	public char getSex() {
		return sex;
	}

	public void setSex(char sex) {
		this.sex = sex;
	}

	@Column
	public String getIDCard() {
		return IDCard;
	}

	public void setIDCard(String iDCard) {
		IDCard = iDCard;
	}

	@ManyToOne
	@JoinColumn(name = "clazz_id")
	public Clazz getClazz() {
		return clazz;
	}

	public void setClazz(Clazz clazz) {
		this.clazz = clazz;
	}
}
